<?php


namespace app\admin\validate;


use think\Validate;

class News extends Validate
{
    protected $rule = [
        'type' => 'require',
        'title' => 'require',
        'content' => 'require',
        'attachment1' => 'require',
    ];

    protected $message = [
        'type' => '类型不能为空',
        'title' =>  '标题不能为空！',
        'content' => '内容不能为空',

    ];

    protected $scene = [
        'letter' => ['title','content'],
        'issued' => ['front_cover','type','title','content'],
        'communication' => ['title','content'],
    ];
}